import React, { Component } from 'react'
import axios from 'axios'
import Header from './components/Header'
import List from './components/List'
import { Layout } from 'antd';
import './App.moudle.css'
export default class App extends Component {
    state = {
        userPage: {},
        loading: false,
        err: "",
        isFirst: true
    }
    updateAppState = (stateObj) => {
        this.setState(stateObj)
    }
    render() {
        const { Content } = Layout;
        return (
            <Layout className="layout">
                <Content className="content">
                    <Header updateAppState={this.updateAppState} />
                    <List {...this.state} />
                </Content>
            </Layout>
        )
    }
}
